.class Lcom/waiqin365/lightapp/im/adapter/ad;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/im/adapter/f;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/adapter/f;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/adapter/ad;->a:Lcom/waiqin365/lightapp/im/adapter/f;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 12

    const/4 v11, 0x0

    new-instance v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kehu/share/a/c;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/ad;->a:Lcom/waiqin365/lightapp/im/adapter/f;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/f;->a(Lcom/waiqin365/lightapp/im/adapter/f;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v0

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/adapter/ad;->a:Lcom/waiqin365/lightapp/im/adapter/f;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/adapter/f;->a(Lcom/waiqin365/lightapp/im/adapter/f;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/m;->i(Ljava/lang/String;)Lcom/waiqin365/lightapp/kehu/share/a/c;

    move-result-object v0

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/adapter/ad;->a:Lcom/waiqin365/lightapp/im/adapter/f;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/adapter/f;->a(Lcom/waiqin365/lightapp/im/adapter/f;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/adapter/ad;->a:Lcom/waiqin365/lightapp/im/adapter/f;

    invoke-static {v3}, Lcom/waiqin365/lightapp/im/adapter/f;->a(Lcom/waiqin365/lightapp/im/adapter/f;)Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/login/mainview/a;->k(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->a:Ljava/lang/String;

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->b:Ljava/lang/String;

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->j:Ljava/lang/String;

    iget-object v6, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->d:Ljava/lang/String;

    iget-object v7, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->e:Ljava/lang/String;

    iget-object v8, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->l:Ljava/lang/String;

    const-string/jumbo v9, "toChatUsername"

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v10, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v10, "_"

    invoke-virtual {v2, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v9, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "id"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "name"

    invoke-virtual {v1, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "department"

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/adapter/ad;->a:Lcom/waiqin365/lightapp/im/adapter/f;

    invoke-static {v3}, Lcom/waiqin365/lightapp/im/adapter/f;->a(Lcom/waiqin365/lightapp/im/adapter/f;)Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v3

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->g:Ljava/lang/String;

    invoke-virtual {v3, v0}, Lcom/waiqin365/base/db/offlinedata/m;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "emp_position"

    invoke-virtual {v1, v0, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "phone"

    invoke-virtual {v1, v0, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "tel"

    invoke-virtual {v1, v0, v7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "pic_url"

    invoke-virtual {v1, v0, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "sendable"

    invoke-virtual {v1, v0, v11}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/ad;->a:Lcom/waiqin365/lightapp/im/adapter/f;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/f;->a(Lcom/waiqin365/lightapp/im/adapter/f;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/activity/CustomServiceChatActivity;

    iput-boolean v11, v0, Lcom/waiqin365/lightapp/im/activity/CustomServiceChatActivity;->e:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/ad;->a:Lcom/waiqin365/lightapp/im/adapter/f;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/f;->a(Lcom/waiqin365/lightapp/im/adapter/f;)Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/ad;->a:Lcom/waiqin365/lightapp/im/adapter/f;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/f;->a(Lcom/waiqin365/lightapp/im/adapter/f;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->overridePendingTransition(II)V

    return-void
.end method
